/**
 * @author lscl
 * @version 1.0
 * @intro:
 */
public class Demo09_循环_break {
    public static void main(String[] args) {

        for (int i = 1; i <= 5; i++) {

            if (i == 3) {
                // 跳出循环体
                break;
            }
            System.out.println("i的值为: " + i);
        }

        System.out.println("程序结束！");

    }
}